package com.cskaoyan.service;

import com.cskaoyan.dao.OrderDao;
import com.cskaoyan.dao.UserDao;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author stone
 * @date 2022/08/29 14:41
 */
@Service
public class OrderServiceImpl implements OrderService{
    OrderDao orderDao;
    UserDao userDao1;
    UserDao userDao2;

    public OrderServiceImpl(OrderDao orderDao, @Qualifier("userDaoImpl1") UserDao userDao1,
                            @Qualifier("userDaoImpl2") UserDao userDao2) {
        this.orderDao = orderDao;
        this.userDao1 = userDao1;
        this.userDao2 = userDao2;
    }
}
